﻿using Dynamic.Api.TestService.Model;
using Microsoft.AspNetCore.Mvc;

namespace Dynamic.Api.TestService
{

    /// <summary>
    /// 测试服务01
    /// </summary>
    public class TestService
    {

        private List<Employee> employees;
        /// <summary>
        /// 
        /// </summary>
        public TestService()
        {
            employees = new List<Employee>
            {
                new Employee("001", "用户01")
            };
        }

        /// <summary>
        /// 获取用户列表
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        [HttpGet("list")]
        public async Task<List<Employee>> GetEmployeeListAsync(string id)
        {
            var result = employees.Where(it => it.Id == id).ToList();
            return await Task.FromResult(result);

        }


    }
}
